package cn.kgc.client;

import cn.kgc.base.entity.CartSkuInfo;
import cn.kgc.commons.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @since 2022/12/16 0016 上午 10:41
 * 从商品模块中获得商品信息
 */
@FeignClient( value = "mall-pms",path="/pms/SkuInfo",fallback = CartSkuInfoFeignClientImpl.class)
public interface CartSkuInfoFeignClient {
    @GetMapping("/getCart")
    Result<CartSkuInfo>getCartSkuInfo(@RequestParam("skuId") Long skuId);
}
